package com.atguigu.spring.bean;

import java.util.Arrays;

/**
 * @author wk
 * @create 2021-06-01 16:15
 */
public class Teacher {
    private Integer tid;
    private String tname;
    private String[] hobby;

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Teacher(Integer tid, String tname, String[] hobby) {
        this.tid = tid;
        this.tname = tname;
        this.hobby = hobby;
    }

    public Teacher() {
    }
}
